package com.qj.yantaishan.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qj.yantaishan.domain.OrderDiscount;

/**
 * 订单折扣Service接口
 * 
 * @author qihe
 * @date 2022-07-22
 */
public interface IOrderDiscountService   extends IService<OrderDiscount>
{
    /**
     * 查询订单折扣
     * 
     * @param id 订单折扣主键
     * @return 订单折扣
     */
    public OrderDiscount selectOrderDiscountById(Long id);

    /**
     * 查询订单折扣列表
     * 
     * @param orderDiscount 订单折扣
     * @return 订单折扣集合
     */
    public List<OrderDiscount> selectOrderDiscountList(OrderDiscount orderDiscount);

    /**
     * 新增订单折扣
     * 
     * @param orderDiscount 订单折扣
     * @return 结果
     */
    public int insertOrderDiscount(OrderDiscount orderDiscount);

    /**
     * 修改订单折扣
     * 
     * @param orderDiscount 订单折扣
     * @return 结果
     */
    public int updateOrderDiscount(OrderDiscount orderDiscount);

    /**
     * 批量删除订单折扣
     * 
     * @param ids 需要删除的订单折扣主键集合
     * @return 结果
     */
    public int deleteOrderDiscountByIds(String ids);

    /**
     * 删除订单折扣信息
     * 
     * @param id 订单折扣主键
     * @return 结果
     */
    public int deleteOrderDiscountById(Long id);
}
